package cn.ll.dao;

import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import cn.ll.po.Order;

public class OrderDao extends HibernateDaoSupport {

	public List findById(String id) {

		String sql = "from Order";
		List ls = this.getHibernateTemplate().find(sql);		
		return ls;
	}

	public void insert(Order order) {
		
		this.getHibernateTemplate().saveOrUpdate(order);
		
	}

}
